<?php

return [
    [
        'label'   => '微信中心',
        'url'     => ['#'], // 一级菜单，可以设个url，如果是两级以上菜单，url会无效
        'match'   => '@^/wechat.*@',
        'visible' => true,
        'icon' => 'fa fa-wechat',
        // items可以为空，即没下级菜单
        'items'   => [
            [
                'label' => '公众号列表',
                'url'   => ['/wechat/account'],
                'match' => ['@^/wechat/account.*@'],
                'auth'  => [
                    'module:wechat',
                ],
            ],
            [
                'label' => '粉丝列表',
                'url'   => ['/wechat/fans'],
                'match' => ['@^/wechat/fans.*@'],
                'auth'  => [
                    'module:wechat',
                ],
            ],
            [
                'label' => '自定义菜单',
                'url'   => ['/wechat/menu'],
                'match' => ['@^/wechat/menu.*@'],
                'auth'  => [
                    'module:wechat',
                ],
            ],
            [
                'label' => '回复规则',
                'url'   => ['/wechat/reply'],
                'match' => ['@^/wechat/reply.*@'],
                'auth'  => [
                    'module:wechat',
                ],
            ],
            /*
            [
                'label' => '消息历史',
                'url'   => ['/wechat/history'],
                'match' => ['@^/wechat/history.*@'],
                'auth'  => [
                    'module:wechat',
                ],
            ],
            */
            [
                'label' => '素材管理',
                'url'   => ['/wechat/media'],
                'match' => ['@^/wechat/media.*@'],
                'auth'  => [
                    'module:wechat',
                ],
            ],
            [
                'label' => '模块管理',
                'url'   => ['/wechat/module'],
                'match' => ['@^/wechat/module.*@'],
                'auth'  => [
                    'module:wechat',
                ],
            ],
            [
                'label' => '微信模拟器',
                'url'   => ['/wechat/simulator'],
                'match' => ['@^/wechat/simulator.*@'],
                'auth'  => [
                    'module:wechat',
                ],
            ],
        ],
    ],
];
